package com.ziytek.web.citizen.quartz.execute;

import com.google.gson.Gson;
import com.ziytek.web.citizen.event.RealDataEvent;
import com.ziytek.web.citizen.model.data.RealData;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

/**
 * 测试数据模拟任务
 *
 * @author fengh
 */
@Slf4j
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TestQuartzJob implements Job {
    private final Gson gson;
    private final ApplicationContext applicationContext;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("TestQuartzJob execute");

        JobDataMap dataMap = context.getMergedJobDataMap();
        var type = dataMap.getInt("type");
        type = 3;

        var json = "{\"h\":170,\"b\":0,\"t\":0,\"d\":[{\"c\":0,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":1999,\"v\":4140},{\"p\":2,\"c\":2002,\"v\":4149},{\"p\":3,\"c\":1999,\"v\":4154},{\"p\":4,\"c\":2001,\"v\":4152},{\"p\":5,\"c\":2000,\"v\":4139},{\"p\":6,\"c\":2000,\"v\":4151},{\"p\":7,\"c\":2001,\"v\":4138},{\"p\":8,\"c\":1999,\"v\":4143}]},{\"c\":1,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4152},{\"p\":2,\"c\":1999,\"v\":4148},{\"p\":3,\"c\":2001,\"v\":4148},{\"p\":4,\"c\":1999,\"v\":4157},{\"p\":5,\"c\":1999,\"v\":4130},{\"p\":6,\"c\":2000,\"v\":4159},{\"p\":7,\"c\":2000,\"v\":4152},{\"p\":8,\"c\":2000,\"v\":4154}]},{\"c\":2,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4127},{\"p\":2,\"c\":2000,\"v\":266},{\"p\":3,\"c\":1999,\"v\":4075},{\"p\":4,\"c\":2000,\"v\":4121},{\"p\":5,\"c\":8738,\"v\":8738},{\"p\":6,\"c\":2000,\"v\":4125},{\"p\":7,\"c\":2000,\"v\":4073},{\"p\":8,\"c\":2000,\"v\":4115}]},{\"c\":3,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":1999,\"v\":4142},{\"p\":2,\"c\":2001,\"v\":4155},{\"p\":3,\"c\":1999,\"v\":4149},{\"p\":4,\"c\":2001,\"v\":4149},{\"p\":5,\"c\":2000,\"v\":4159},{\"p\":6,\"c\":2000,\"v\":4154},{\"p\":7,\"c\":2000,\"v\":4168},{\"p\":8,\"c\":2000,\"v\":4152}]},{\"c\":4,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4129},{\"p\":2,\"c\":1999,\"v\":4151},{\"p\":3,\"c\":2001,\"v\":4147},{\"p\":4,\"c\":2000,\"v\":4158},{\"p\":5,\"c\":2001,\"v\":4154},{\"p\":6,\"c\":1999,\"v\":4143},{\"p\":7,\"c\":2001,\"v\":4148},{\"p\":8,\"c\":2000,\"v\":4158}]},{\"c\":5,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":4134},{\"p\":2,\"c\":1999,\"v\":4124},{\"p\":3,\"c\":2001,\"v\":269},{\"p\":4,\"c\":1999,\"v\":271},{\"p\":5,\"c\":1999,\"v\":4145},{\"p\":6,\"c\":2000,\"v\":4140},{\"p\":7,\"c\":1998,\"v\":4138},{\"p\":8,\"c\":1999,\"v\":4138}]},{\"c\":6,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":4141},{\"p\":2,\"c\":2000,\"v\":4121},{\"p\":3,\"c\":2001,\"v\":4130},{\"p\":4,\"c\":2000,\"v\":4130},{\"p\":5,\"c\":1999,\"v\":4138},{\"p\":6,\"c\":2001,\"v\":4150},{\"p\":7,\"c\":1999,\"v\":4143},{\"p\":8,\"c\":2002,\"v\":4153}]},{\"c\":7,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":1999,\"v\":4129},{\"p\":2,\"c\":2001,\"v\":4133},{\"p\":3,\"c\":2001,\"v\":4138},{\"p\":4,\"c\":2000,\"v\":4139},{\"p\":5,\"c\":2001,\"v\":4119},{\"p\":6,\"c\":1999,\"v\":267},{\"p\":7,\"c\":2000,\"v\":4148},{\"p\":8,\"c\":1998,\"v\":4129}]},{\"c\":8,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4131},{\"p\":2,\"c\":2000,\"v\":4146},{\"p\":3,\"c\":2000,\"v\":264},{\"p\":4,\"c\":1998,\"v\":4149},{\"p\":5,\"c\":2000,\"v\":4130},{\"p\":6,\"c\":1999,\"v\":4137},{\"p\":7,\"c\":1999,\"v\":4142},{\"p\":8,\"c\":1999,\"v\":4137}]},{\"c\":9,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":4169},{\"p\":2,\"c\":2000,\"v\":4166},{\"p\":3,\"c\":2001,\"v\":4169},{\"p\":4,\"c\":2000,\"v\":4168},{\"p\":5,\"c\":2000,\"v\":4174},{\"p\":6,\"c\":2000,\"v\":4171},{\"p\":7,\"c\":2000,\"v\":4146},{\"p\":8,\"c\":1999,\"v\":4165}]},{\"c\":10,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4157},{\"p\":2,\"c\":2001,\"v\":4154},{\"p\":3,\"c\":1999,\"v\":4133},{\"p\":4,\"c\":2001,\"v\":4141},{\"p\":5,\"c\":1999,\"v\":4139},{\"p\":6,\"c\":2001,\"v\":4127},{\"p\":7,\"c\":1999,\"v\":4155},{\"p\":8,\"c\":2001,\"v\":4129}]},{\"c\":11,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4026},{\"p\":2,\"c\":2001,\"v\":261},{\"p\":3,\"c\":2000,\"v\":4047},{\"p\":4,\"c\":2000,\"v\":4026},{\"p\":5,\"c\":2001,\"v\":4064},{\"p\":6,\"c\":2000,\"v\":4092},{\"p\":7,\"c\":2001,\"v\":4048},{\"p\":8,\"c\":2000,\"v\":4030}]},{\"c\":12,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":4155},{\"p\":2,\"c\":2000,\"v\":4161},{\"p\":3,\"c\":2001,\"v\":4152},{\"p\":4,\"c\":1999,\"v\":4169},{\"p\":5,\"c\":2000,\"v\":4166},{\"p\":6,\"c\":1999,\"v\":4165},{\"p\":7,\"c\":2001,\"v\":4152},{\"p\":8,\"c\":1999,\"v\":4131}]},{\"c\":13,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":4147},{\"p\":2,\"c\":2000,\"v\":270},{\"p\":3,\"c\":2002,\"v\":4144},{\"p\":4,\"c\":1999,\"v\":4121},{\"p\":5,\"c\":2000,\"v\":4116},{\"p\":6,\"c\":2000,\"v\":4140},{\"p\":7,\"c\":2000,\"v\":4139},{\"p\":8,\"c\":1999,\"v\":4145}]},{\"c\":14,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2000,\"v\":4144},{\"p\":2,\"c\":1999,\"v\":4159},{\"p\":3,\"c\":2000,\"v\":4181},{\"p\":4,\"c\":2001,\"v\":4151},{\"p\":5,\"c\":2000,\"v\":4165},{\"p\":6,\"c\":1999,\"v\":4170},{\"p\":7,\"c\":1999,\"v\":4173},{\"p\":8,\"c\":2001,\"v\":4167}]},{\"c\":15,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":2001,\"v\":266},{\"p\":2,\"c\":1999,\"v\":4074},{\"p\":3,\"c\":2000,\"v\":4073},{\"p\":4,\"c\":2000,\"v\":4064},{\"p\":5,\"c\":1998,\"v\":4060},{\"p\":6,\"c\":2000,\"v\":4054},{\"p\":7,\"c\":1999,\"v\":271},{\"p\":8,\"c\":1999,\"v\":4045}]}],\"ts\":1742455193470,\"bd\":[-86,0,2,0,-80,2,1,8,1,1,7,-48,16,56,2,7,-49,16,52,3,7,-47,16,52,4,7,-49,16,61,5,7,-49,16,34,6,7,-48,16,63,7,7,-48,16,56,8,7,-48,16,58,2,8,1,1,7,-48,16,31,2,7,-48,16,10,3,7,-49,15,-21,4,7,-48,16,25,5,34,34,34,34,6,7,-48,16,29,7,7,-48,15,-23,8,7,-48,16,19,3,8,1,1,7,-49,16,46,2,7,-47,16,59,3,7,-49,16,53,4,7,-47,16,53,5,7,-48,16,63,6,7,-48,16,58,7,7,-48,16,72,8,7,-48,16,56,4,8,1,1,7,-48,16,33,2,7,-49,16,55,3,7,-47,16,51,4,7,-48,16,62,5,7,-47,16,58,6,7,-49,16,47,7,7,-47,16,52,8,7,-48,16,62,5,8,1,1,7,-47,16,38,2,7,-49,16,28,3,7,-47,16,13,4,7,-49,16,15,5,7,-49,16,49,6,7,-48,16,44,7,7,-50,16,42,8,7,-49,16,42,6,8,1,1,7,-47,16,45,2,7,-48,16,25,3,7,-47,16,34,4,7,-48,16,34,5,7,-49,16,42,6,7,-47,16,54,7,7,-49,16,47,8,7,-46,16,57,7,8,1,1,7,-49,16,33,2,7,-47,16,37,3,7,-47,16,42,4,7,-48,16,43,5,7,-47,16,23,6,7,-49,16,11,7,7,-48,16,52,8,7,-50,16,33,8,8,1,1,7,-48,16,35,2,7,-48,16,50,3,7,-48,16,8,4,7,-50,16,53,5,7,-48,16,34,6,7,-49,16,41,7,7,-49,16,46,8,7,-49,16,41,9,8,1,1,7,-47,16,73,2,7,-48,16,70,3,7,-47,16,73,4,7,-48,16,72,5,7,-48,16,78,6,7,-48,16,75,7,7,-48,16,50,8,7,-49,16,69,10,8,1,1,7,-48,16,61,2,7,-47,16,58,3,7,-49,16,37,4,7,-47,16,45,5,7,-49,16,43,6,7,-47,16,31,7,7,-49,16,59,8,7,-47,16,33,11,8,1,1,7,-48,15,-70,2,7,-47,16,5,3,7,-48,15,-49,4,7,-48,15,-70,5,7,-47,15,-32,6,7,-48,15,-4,7,7,-47,15,-48,8,7,-48,15,-66,12,8,1,1,7,-47,16,59,2,7,-48,16,65,3,7,-47,16,56,4,7,-49,16,73,5,7,-48,16,70,6,7,-49,16,69,7,7,-47,16,56,8,7,-49,16,35,13,8,1,1,7,-47,16,51,2,7,-48,16,14,3,7,-46,16,48,4,7,-49,16,25,5,7,-48,16,20,6,7,-48,16,44,7,7,-48,16,43,8,7,-49,16,49,14,8,1,1,7,-48,16,48,2,7,-49,16,63,3,7,-48,16,85,4,7,-47,16,55,5,7,-48,16,69,6,7,-49,16,74,7,7,-49,16,77,8,7,-47,16,71,15,8,1,1,7,-47,16,10,2,7,-49,15,-22,3,7,-48,15,-23,4,7,-48,15,-32,5,7,-50,15,-36,6,7,-48,15,-42,7,7,-49,16,15,8,7,-49,15,-51,0,8,1,1,7,-49,16,44,2,7,-46,16,53,3,7,-49,16,58,4,7,-47,16,56,5,7,-48,16,43,6,7,-48,16,55,7,7,-47,16,42,8,7,-49,16,47,81,-52,13,10]}";
        json = "{\"h\":170,\"b\":0,\"t\":3,\"d\":[{\"c\":0,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":-12,\"v\":3297},{\"p\":2,\"c\":-11,\"v\":3297},{\"p\":3,\"c\":-27,\"v\":3296},{\"p\":4,\"c\":-6,\"v\":3296},{\"p\":5,\"c\":-9,\"v\":3297},{\"p\":6,\"c\":-10,\"v\":3243},{\"p\":7,\"c\":-9,\"v\":3240},{\"p\":8,\"c\":-5,\"v\":3297}]},{\"c\":1,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":2,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":3,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":4,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":5,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":6,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":7,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":8,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":9,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":10,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":11,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":12,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":13,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":14,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":15,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]}],\"ts\":1742879570812,\"bd\":[-86,0,3,3,-80,2,0,8,1,1,-1,-12,12,-31,2,-1,-11,12,-31,3,-1,-27,12,-32,4,-1,-6,12,-32,5,-1,-9,12,-31,6,-1,-10,12,-85,7,-1,-9,12,-88,8,-1,-5,12,-31,8,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,12,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,4,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,1,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,9,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,13,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,5,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,2,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,10,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,14,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,6,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,3,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,11,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,15,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,7,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,-88,-52,13,10]}";
        json = "{\"h\":170,\"b\":0,\"t\":3,\"d\":[{\"c\":0,\"n\":8,\"v\":1,\"d\":[{\"p\":1,\"c\":10000,\"v\":3363},{\"p\":2,\"c\":10000,\"v\":3362},{\"p\":3,\"c\":10001,\"v\":3361},{\"p\":4,\"c\":10002,\"v\":3362},{\"p\":5,\"c\":10000,\"v\":3362},{\"p\":6,\"c\":10001,\"v\":3309},{\"p\":7,\"c\":9996,\"v\":3309},{\"p\":8,\"c\":9998,\"v\":3358}]},{\"c\":1,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":2,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":3,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":4,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":5,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":6,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":7,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":8,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":9,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":10,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":11,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":12,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":13,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":14,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]},{\"c\":15,\"n\":8,\"v\":0,\"d\":[{\"p\":1,\"c\":0,\"v\":0},{\"p\":2,\"c\":0,\"v\":0},{\"p\":3,\"c\":0,\"v\":0},{\"p\":4,\"c\":0,\"v\":0},{\"p\":5,\"c\":0,\"v\":0},{\"p\":6,\"c\":0,\"v\":0},{\"p\":7,\"c\":0,\"v\":0},{\"p\":8,\"c\":0,\"v\":0}]}],\"ts\":1742881758285,\"bd\":[-86,0,3,3,-80,2,0,8,1,1,39,16,13,35,2,39,16,13,34,3,39,17,13,33,4,39,18,13,34,5,39,16,13,34,6,39,17,12,-19,7,39,12,12,-19,8,39,14,13,30,4,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,12,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,8,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,1,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,5,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,13,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,9,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,2,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,6,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,14,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,10,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,3,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,7,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,15,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,11,8,0,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0,5,0,0,0,0,6,0,0,0,0,7,0,0,0,0,8,0,0,0,0,-122,-52,13,10]}";
        var rd = gson.fromJson(json, RealData.class);

        rd.setT(type);
        applicationContext.publishEvent(new RealDataEvent(rd));

        log.info("RealDataEvent published successfully");
    }
}
